package com.applet.applet_shangcheng;

import com.applet.applet_shangcheng.utlis.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
public class AppletShangchengApplication {

	public static void main(String[] args) {
		SpringApplication.run(AppletShangchengApplication.class, args);
	}

	@Bean
	public IdWorker idWorker(){
		return new IdWorker(1,1);
	}

}
